import httpInstance from "@/utils/http"

/**
 * 文件上传
 * @param file 文件,还需要包含 path 当前路径
 * @returns {*}
 */
export function uploadFile(formData) {
    return httpInstance({
        method: "post",
        url: "/upload/file",
        headers: {
            'Content-Type': 'multipart/form-data',
        },
        data: formData
    })
}


